package red.stu.mc.mod.codeblock.tileentity;

import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import red.stu.mc.mod.codeblock.CodeBlockMod;

public class TileEntityLoader {
	
	public TileEntityLoader(FMLPreInitializationEvent event) {
		registerTileEntity(TileEntityCodeBlock.class, "code_block");
		registerTileEntity(TileEntityEventBlock.class, "event_block");
	}
	
	public void registerTileEntity(Class<? extends TileEntity> tileEntityClass, String name) {
		GameRegistry.registerTileEntity(tileEntityClass, CodeBlockMod.MODID + ":" + name);
	}

}
